//
//  SHXXXQViewController.m
//  firstpoint
//
//  Created by 泽中 on 2017/7/19.
//  Copyright © 2017年 xzcysoft. All rights reserved.
//

#import "SHXXXQViewController.h"
#import "BinDingTextView.h"
#import "ZJBLStoreShopTypeAlert.h"

@interface SHXXXQViewController ()
{
    UILabel*tongguoStateLab;
    UILabel*beizhuLab;
    UILabel*wuliuLab;
    NSArray *titles;//公司分类
    
}
@end

@implementation SHXXXQViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    titles = @[@"顺丰",@"韵达",@"百世汇通",@"圆通快递"];

    self.title=@"售后消息";
    self.view.backgroundColor=LRRGBColor(235, 240, 242);
    [self setUI];
}
-(void)setUI
{  //1
    UIView*view=[[UIView alloc]initWithFrame:CGRectMake(0, 74, width_screen, 45)];
    view.backgroundColor=[UIColor whiteColor];
    [self.view addSubview:view];
    UILabel*tuihuoLab=[[UILabel alloc]initWithFrame:CGRectMake(10, 0, 180, 45)];
    tuihuoLab.text=@"退换货申请";
    tuihuoLab.font=[UIFont systemFontOfSize:13];
    [view addSubview:tuihuoLab];
    
    tongguoStateLab=[[UILabel alloc]initWithFrame:CGRectMake(width_screen-100, 0, 90, 45)];
    
    tongguoStateLab.text=@"已通过";
    tongguoStateLab.textAlignment=2;
    tongguoStateLab.font=[UIFont systemFontOfSize:12];
    [view addSubview:tongguoStateLab];
    
    //2
    
    UIView*view2=[[UIView alloc]initWithFrame:CGRectMake(0, 120, width_screen, 60)];
    view2.backgroundColor=[UIColor whiteColor];
    [self.view addSubview:view2];
    UILabel*beizhuTitleLab=[[UILabel alloc]initWithFrame:CGRectMake(10, 10, 100, 15)];
    beizhuTitleLab.text=@"备注";
    beizhuTitleLab.font=[UIFont systemFontOfSize:13];
    [view2 addSubview:beizhuTitleLab];
    
    beizhuLab=[[UILabel alloc]initWithFrame:CGRectMake(10, 35, width_screen-10, 15)];
    beizhuLab.text=@"石家庄市是的撒多撒多";
    beizhuLab.font=[UIFont systemFontOfSize:13];
    [view2 addSubview:beizhuLab];
    //3
    BinDingTextView*danhaoView=[[BinDingTextView alloc]initWithFrame:CGRectMake(0, 181, width_screen, 46)];
    danhaoView.textField.placeholder=@" 单号";
    danhaoView.titleLab.text=@"填写物流单号";
    [self.view addSubview:danhaoView];
    //4
    UIButton*wuliuGongsiButton=[[UIButton alloc]initWithFrame:CGRectMake(0, 227, width_screen, 45)];
    [wuliuGongsiButton addTarget:self action:@selector(tanchuWuLiuGongSi) forControlEvents:UIControlEventTouchUpInside];
    wuliuGongsiButton.backgroundColor=[UIColor whiteColor];
    [self.view addSubview:wuliuGongsiButton];
    UILabel*wulouMingChengLab=[[UILabel alloc]initWithFrame:CGRectMake(10, 0, 100, 45)];
    wulouMingChengLab.text=@"物流公司";
    wulouMingChengLab.font=[UIFont systemFontOfSize:13];
    [wuliuGongsiButton addSubview:wulouMingChengLab];
    
    wuliuLab=[[UILabel alloc]initWithFrame:CGRectMake(100, 0, width_screen-110, 45)];
    wuliuLab.font=[UIFont systemFontOfSize:13];
    wuliuLab.text=@"顺丰";
    wuliuLab.textAlignment=2;
    [wuliuGongsiButton addSubview:wuliuLab];
    
    
    UIButton*button=[UIButton buttonWithType:UIButtonTypeCustom];
    button.frame=CGRectMake(10, 282, width_screen-20, 50);
    button.backgroundColor=LRRGBColor(23, 146, 211);
    button.layer.cornerRadius=4;
    [button setTitle:@"确认提交" forState:0];
    [self.view addSubview:button];

}
-(void)tanchuWuLiuGongSi
{
    NSLog(@"sssssss");
    [ZJBLStoreShopTypeAlert showWithTitle:@"选择你的物流" titles:titles selectIndex:^(NSInteger selectIndex) {
        NSLog(@"选择了第%ld个",selectIndex);
    } selectValue:^(NSString *selectValue) {
        NSLog(@"选择的值为%@",selectValue);
        wuliuLab.text = selectValue;
    } showCloseButton:NO];

}
-(void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event
{
    [self.view endEditing:YES];
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
